package mole.entities.obstacles 
{
	import mx.effects.effectClasses.ResizeInstance;
	/**
	 * ...
	 * @author Cédric Liaudet
	 */
	public class CObstaclesAssets 
	{
		//==========================================//
		//			LISTE DES OBSTACLES				//
		//==========================================//
		[Embed(source='../../../data/images/objects/barril.png')]
		static public const BARRIL_PNG:Class;
		
		[Embed(source='../../../data/images/objects/sol_1.png')]
		static public const SOL_1_PNG:Class;
		
		[Embed(source='../../../data/images/objects/obstacle2.png')]
		static public const SOL_2_PNG:Class;
		
		[Embed(source='../../../data/images/objects/obstacle03.png')]
		static public const SOL_3_PNG:Class;
		
		[Embed(source='../../../data/images/objects/obstacle_haut_1.png')]
		static public const PLAFOND_1_PNG:Class;
		
		[Embed(source='../../../data/images/objects/obstacle_haut_2.png')]
		static public const PLAFOND_2_PNG:Class;
		
		[Embed(source = '../../../data/images/objects/mur_impossible.png')]
		static public const IMPOSSIBLE_PNG:Class;
		
		/**
		 * 
		 * @param	_sName Nom de l'obstacle.
		 * @return
		 */
		static public function GetAssetFromName(_sName:String):Class
		{
			if (_sName == "sol_1")
			{
				return SOL_1_PNG;
			}
			else if (_sName == "sol_2")
			{
				return SOL_2_PNG;
			}
			else if (_sName == "sol_3")
			{
				return SOL_3_PNG;
			}
			else if (_sName == "plafond_1")
			{
				return PLAFOND_1_PNG;
			}
			else if (_sName == "plafond_2")
			{
				return PLAFOND_2_PNG;
			}
			else if (_sName == "impossible")
			{
				return IMPOSSIBLE_PNG;
			}
			
			return BARRIL_PNG;
		}
	}

}